#ifndef __NetworkIcon__H__
#define __NetworkIcon__H__

#include <QWidget>

QT_BEGIN_NAMESPACE
class QNetworkAccessManager;
QT_END_NAMESPACE
class NetworkIcon : public QWidget
{
    Q_OBJECT
public:
    explicit NetworkIcon(QWidget *parent=nullptr);

    void load(QString &url);

signals:
    void loaded(QPixmap pixmap);

private:
    QPixmap *pixmap;

private:
    QNetworkAccessManager *manager;
};


#endif  //!__NetworkIcon__H__